﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using static TMS_Master.Enum;
using Volo.Abp.Application.Dtos;

namespace TMS_Master
{
    /// <summary>
    /// 付款申请
    /// </summary>
    public class PaymentCreateUpdateDto
    {
        [Required]
        public string Title { get; set; }//标题
        [Required]
        public string Purpose { get; set; }//用途
        [Column(TypeName = "decimal(18,2)")]
        public decimal PayMoney { get; set; }//付款金额
        public PayTypeEnum PayType { get; set; } = PayTypeEnum.Undefined;//付款方式
        [Required]
        public string PayObject { get; set; }//支付对象
        [Required]
        public string OpeningBank { get; set; }//开户行
        [Required]
        public string AccountBank { get; set; }//银行账号
        [Required]
        public string Proposer { get; set; }//申请人
        [DataType(DataType.Date)]
        public DateTime PayTime { get; set; } = DateTime.Now;//付款日期
        [Required]
        public string Remark { get; set; }//备注
        [Required]
        public string CreateTime { get; set; }//创建时间
        [Required]
        public CheckEnum Check { get; set; } = CheckEnum.Undefined;//审批状态
        [Required]
        public string CheckPeo { get; set; }//审批人
        [Required]
        public bool IsDel { get; set; }//逻辑删除
    }
}